#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main() {
    char c = 0;
    scanf("%c", &c);
    printf("%hhd", c);
    return 0;
}